package com.example.testspringwebflux.bean;

import org.springframework.core.io.ClassPathResource;
import org.springframework.web.servlet.resource.PathResourceResolver;

import java.util.Collections;

/**
 * HttpTest1
 *
 * @author xule
 * @since 2024/07/03
 */
public class HttpTest1 {

    public static void main(String[] args) throws Exception {
        test1();
    }

    public static void test1() throws Exception {
        PathResourceResolver resolver = new PathResourceResolver();

        String d = resolver.resolveUrlPath("vue.min.js",
                Collections.singletonList(new ClassPathResource("/static/vue.min.js")),
                null);
        System.out.println(d);
    }
}
